﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucComment" TagName="Comment" Src="../Common/Inc/Comment.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bby4010b.aspx.cs" Inherits="Updms.Bby.Bby4010b" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Bby4010b] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Bby4010b" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%" style="height:25px;"><asp:Literal id="ltr_file_excel" Text="파일" runat="server" /></td>
					<td class="ctl" width="39%">
						<ul class="horizontal">
							<li style="width:50%;"><input class="ib_file" id="file_excel" type="file" runat="server" /></li>
							<li style="width:50%;"><asp:LinkButton id="ibtn_upload" Text="업로드" runat="server" CssClass="ibtn ibtn_upload" OnClick="ibtn_upload_Click"></asp:LinkButton></li>
						</ul>
					</td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_template" Text="템플릿" runat="server" /></td>
					<td class="ctl" width="39%"><a href="../Common/Batch/Template/Mny4010b_template.xls" target="_blank"><img src="../Common/Images/disk.png" align="absMiddle"></a></td>
					<td width="11%"></td>
					<td width="22%"></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table id="table_list_set" cellpadding="0" cellspacing="0" border="0" width="100%" runat="server">
				<tr>
					<td>
						<!-- 검색어 시작 -->
						<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
						<!-- 검색어 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 리스트 시작 -->
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
							<Columns>
								<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheck('GridView1');&quot;&gt;S&lt;/a&gt;">
									<ItemTemplate>
										<input id="cb_check" class="cb" type="checkbox" onclick="reverseRow('GridView1', 0);" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="2%" />
								</asp:TemplateField>
								<asp:BoundField HeaderText="번호" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Lac_Dt" HeaderText="수유일" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
									<ItemStyle Width="10%" HorizontalAlign="Center" />
									<HeaderStyle CssClass="req" />
								</asp:BoundField>
								<asp:BoundField DataField="Lac_Num" HeaderText="수유횟수" DataFormatString="{0:#,##0}" HtmlEncode="False">
									<ItemStyle Width="6%" HorizontalAlign="Center" />
									<HeaderStyle CssClass="req" />
								</asp:BoundField>
								<asp:BoundField DataField="Cc" HeaderText="수유량" DataFormatString="{0:#,##0}" HtmlEncode="False">
									<ItemStyle Width="8%" HorizontalAlign="Right" />
								</asp:BoundField>
								<asp:BoundField DataField="Real_Cc" HeaderText="실제수유량" DataFormatString="{0:#,##0}" HtmlEncode="False">
									<ItemStyle Width="8%" HorizontalAlign="Right" />
								</asp:BoundField>
								<asp:BoundField DataField="Baby_Food" HeaderText="이유식" DataFormatString="{0:#,##0}" HtmlEncode="False">
									<ItemStyle Width="6%" HorizontalAlign="Center" />
								</asp:BoundField>
								<asp:BoundField DataField="Baby_Food_Stuff" HeaderText="주재료">
									<ItemStyle HorizontalAlign="Left" Width="40%" />
								</asp:BoundField>
								<asp:BoundField DataField="Poo_Poo" HeaderText="응가">
									<ItemStyle Width="6%" HorizontalAlign="Center" />
									<HeaderStyle CssClass="req" />
								</asp:BoundField>
								<asp:BoundField DataField="Remark" HeaderText="비고">
									<ItemStyle HorizontalAlign="Left" Width="8%" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 페이징 시작 -->
						<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
						<div class="div_right"></div>
						<!-- 페이징 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->
				<ucComment:Comment id="Comment" TagPrefixs="Bby4010b" runat="server"></ucComment:Comment>
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:label id="lbl_search_flag" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->

		</td>
	</tr>
</table>
</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if(!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_085));	//저장할 항목을 선택해주세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_000), doSave);	//저장하시겠습니까?
		return false;
	}

</script>
</body>
</html>